﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace ConcurrentProgram
{
    class Program
    {
        [DllImport("kernel32.dll",CallingConvention = CallingConvention.Winapi)]
        extern static int GetTickCount();
        static void Main(string[] args)
        {
            PerformanceCounter performance = new PerformanceCounter("Processor","% ProcessorTime","_Total");
            Console.WriteLine( GetTickCount());
            Console.ReadKey();
        }
    }
}
